Micron Document
Aleph Git

Commit 6a84bc9b6fd16ae6b19cdec98e3e51114e5a2a4b


Parents : d256a34
Author : Ivan <ivan@quad4.io>
Signature : Signature validation error
Date : 2025-11-26T15:41:50-06:00

Fix HTTPTunnelInterface initialization to ensure MTU optimization and server setup occur in the correct order

Changes

1 files changed, 6 insertions(+), 2 deletions(-)


Diff

diff --git a/HTTPInterface.py b/HTTPInterface.py
index 1350114..754d73d 100755
--- a/HTTPInterface.py
+++ b/HTTPInterface.py
@@ -103,15 +103,19 @@ class HTTPTunnelInterface(Interface):
self.HW_MTU = mtu
self.online = False
self.bitrate = HTTPTunnelInterface.BITRATE_GUESS
- self.optimise_mtu()
if mode == "server":
self.listen_host = listen_host
self.listen_port = listen_port
- self.setup_server()
else:
self.server_url = server_url
self.poll_interval = poll_interval
+
+ self.optimise_mtu()
+
+ if mode == "server":
+ self.setup_server()
+ else:
self.setup_client()
def _load_html_content(self):

Served by rngit 1.4.2 - Generated in 0.01s